/*
* ============================================================================
*  Name        : camengtestdocument.cpp
*  Part of     : camengtest
*  Description : 
*  Version     : %version: 2 %
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*
* You are welcome to, but not required to, contribute any modifications that
* improve stability, usability and/or feature set of the library back to
* Symbian/S60 Camera Wrapper project, as long as binary compatibility is
* retained. See https://projects.forum.nokia.com/camerawrapper for more info.
* ============================================================================
*/

// INCLUDE FILES
#include "CAMENGTESTAppUi.h"
#include "CAMENGTESTDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CCAMENGTESTDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CCAMENGTESTDocument* CCAMENGTESTDocument::NewL( CEikApplication&
                                                          aApp )
    {
    CCAMENGTESTDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
    }

// -----------------------------------------------------------------------------
// CCAMENGTESTDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CCAMENGTESTDocument* CCAMENGTESTDocument::NewLC( CEikApplication&
                                                           aApp )
    {
    CCAMENGTESTDocument* self =
        new ( ELeave ) CCAMENGTESTDocument( aApp );

    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CCAMENGTESTDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CCAMENGTESTDocument::ConstructL()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CCAMENGTESTDocument::CCAMENGTESTDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CCAMENGTESTDocument::CCAMENGTESTDocument( CEikApplication& aApp )
    : CAknDocument( aApp )
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CCAMENGTESTDocument::~CCAMENGTESTDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CCAMENGTESTDocument::~CCAMENGTESTDocument()
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CCAMENGTESTDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CCAMENGTESTDocument::CreateAppUiL()
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return ( static_cast <CEikAppUi*> ( new ( ELeave )
                                        CCAMENGTESTAppUi ) );
    }

// End of File

